package com.wh.emall.product.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.wh.emall.common.utils.PageUtils;
import com.wh.emall.product.entity.CategoryEntity;

import java.util.List;
import java.util.Map;

/**
 * 商品三级分类
 *
 * @author wh
 * @email wh@gmail.com
 * @date 2020-07-12 21:16:17
 */
public interface CategoryService extends IService<CategoryEntity> {

    PageUtils queryPage(Map<String, Object> params);

    List<CategoryEntity> listWithTree();

    void removeMenuByIds(List<Long> asList);

    //找到catelogId的完整路径 [一级/二级/三级]
    Long[] findCategoryPath(Long catelogId);

    void updateCascade(CategoryEntity category);
}

